package family;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
    public class mainFamily {


        public mainFamily() {

            JFrame jframe = new JFrame("学校人力资源管理系统") ;
            Dimension d = new Dimension(300,400);
            Point p = new Point (250,350);
            jframe.setSize(d);
            jframe.setLocation(p);
            jframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            jframe.setVisible(true);
            JButton button1 = new JButton("添加");
            JButton button2 = new JButton("修改");
            JButton button3 = new JButton("查询");
            JButton button4 = new JButton("删除");
            JButton button5 = new JButton("浏览");
            FlowLayout flow = new FlowLayout(FlowLayout.LEFT,20,30);
            JPanel panel = new JPanel(flow);
            panel.setSize(300,400);
            panel.setBackground(Color.white);
            panel.add(button1);
            panel.add(button2);
            panel.add(button3);
            panel.add(button4);
            panel.add(button5);
            jframe.getContentPane().add(panel);
            button1.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    Add1 add =new Add1();
                }
            });
            button2.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    Change change =new Change();
                }
            });
            button3.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    Ask ask =new Ask();
                }
            });
            button4.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    Delete delete =new Delete();
                }
            });
            button5.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e){
                    Look look =new Look();
                }
            });


        }

        public static void main(String[] args) {
               new mainFamily();
            }


        }



